package models;

import play.*;
import play.db.jpa.*;

import javax.persistence.*;
import java.util.*;

/**
 * 标价商品，同一个商品对不同的会员等级提供的价格不一样
 * 此实体抽象了商品对某个等级的会员的售价
 * @author justin
 *
 */
@Entity
public class PricedCommodity extends BaseEntity {
    
	public double price;
	
	@ManyToOne
	public Commodity commodity;
	
	/*标价对象*/
	@ManyToOne
	public UserGroup group;
}
